package com.singbon.server.service;
import com.singbon.server.dao.AuthgroupMapper;
import com.singbon.server.pojo.AuthGroup;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
/**
 */
@Service
public class AuthGroupService {
  @Resource
  private AuthgroupMapper authgroupMapper;
  /**
   * Delete by primary key int.
   *
   * @param id the id
   * @return the int
   */
  public int deleteByPrimaryKey(Integer id) {
    return authgroupMapper.deleteByPrimaryKey(id);
  }
  /**
   * Insert int.
   *
   * @param record the record
   * @return the int
   */
  public int insert(AuthGroup record) {
    return authgroupMapper.insert(record);
  }
  /**
   * Insert selective int.
   *
   * @param record the record
   * @return the int
   */
  public int insertSelective(AuthGroup record) {
    return authgroupMapper.insertSelective(record);
  }
  /**
   * Select by primary key auth group.
   *
   * @param id the id
   * @return the auth group
   */
  public AuthGroup selectByPrimaryKey(Integer id) {
    return authgroupMapper.selectByPrimaryKey(id);
  }
  /**
   * Update by primary key selective int.
   *
   * @param record the record
   * @return the int
   */
  public int updateByPrimaryKeySelective(AuthGroup record) {
    return authgroupMapper.updateByPrimaryKeySelective(record);
  }
  /**
   * Update by primary key int.
   *
   * @param record the record
   * @return the int
   */
  public int updateByPrimaryKey(AuthGroup record) {
    return authgroupMapper.updateByPrimaryKey(record);
  }
  /**
   * Select by id auth group.
   *
   * @param groupId the groupId
   * @return the auth group
   */
  public AuthGroup selectById(Integer groupId) {
    return authgroupMapper.selectById(groupId);
  }
}
